package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.affix.Buff;

/**
 * @author James
 * @date 2022/2/26 15:51
 **/
public class RecordStream36ReduceHpAddAttribute extends RecordStream{
    private Fighter target;
    private long reduceValue;
    private long attribute;
    private long addValue;
    private Buff buff;

    public RecordStream36ReduceHpAddAttribute(Fighter target, long reduceValue, long attribute, long addValue, Buff buff){
        this.target = target;
        this.reduceValue = reduceValue;
        this.attribute = attribute;
        this.addValue = addValue;
        this.buff = buff;
    }
    @Override
    protected void _record() {
        sb().append(36);
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(buff.getBuffCode());
        sb().append("|");
        sb().append(buff.getBuffCodeSeq());
        sb().append("|");
        sb().append(reduceValue);
        sb().append("|");
        sb().append(target.get血量万分值());
        sb().append("|");
        sb().append(attribute);
        sb().append("|");
        sb().append(addValue);
        sb().append(";");
    }
}
